<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    window.onload = function () {
        var myDate = new Date();
        document.getElementById("currentTime").innerText = myDate.getTime();
    }
    function loadPage() {
        var targetURL = document.getElementById('url').value;
        console.log(targetURL);

        document.getElementById('iframePosition').src = targetURL;
    }
</script>

<di>
    <p>请输入加载地址</p>
    <span id="currentTime"></span>
    <p>
        <input type="text" id="url" value="https://www.baidu.com">
        <input type="button" value="提交" onclick="loadPage()">
    </p>
</di>
<div>
    <h3>加载页面位置:</h3>
    <iframe src="https://www.baidu.com"style="width: 100%;height: 500px"  id="iframePosition"></iframe>
</div>


</body>
</html>